$OpenBSD: patch-main_c,v 1.2 2014/05/08 20:49:41 sthen Exp $
Trivial change of strcpy() to strlcpy().
Size of stack variable mcf and mcf2 is well known.
`make check` runs fine with it.
--- main.c.orig	Tue May  6 11:42:07 2014
+++ main.c	Thu May  8 21:29:01 2014
@@ -148,7 +148,7 @@ int main()
 	printf("TEST EIGHT: SUCCESSFUL, calculated mcf\n%s\n", mcf);
 
 	/* Since later calls to scrypt_check() butcher mcf, make a second */
-	strcpy(mcf2, mcf);
+	strlcpy(mcf2, mcf, SCRYPT_MCF_LEN);
 
 	/* Couldn't be simpler - for a given mcf, check is the password is valid
 	* Returns < 0 on failure to calculate hash
